#pragma once
class CPoint
{
public:
	CPoint(const double x = 0, const double y = 0, const double z = 0) :_x(x), _y(y), _z(z) { }
	~CPoint() { }
	const double getX() const { return _x; }
	const double getY() const { return _y; }
	const double getZ() const { return _z; }
	void setX(const double x) { _x = x; }
	void setY(const double y) { _y = y; }
	void setZ(const double z) { _z = z; }
	bool operator < (const CPoint& p) const;
	CPoint operator+(const CPoint& p) {
		return CPoint(this->getX() + p.getX(), this->getY() + p.getY(), this->getZ() + p.getZ());
	};
	CPoint operator-(const CPoint& p) { return CPoint(this->getX() - p.getX(), this->getY() - p.getY(), this->getZ() - p.getZ());
	};

private:
	double _x, _y, _z;
};

